﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Awaken.MessageProvider
{
    public class MLinkConfig
    {
        public static string spid { get; set; }

        public static string sppassword { get; set; }

        public static string dc { get; set; }

        public static string DefaultGateway { get; set; }

        /// <summary>
        /// 过期时间(分钟)
        /// </summary>
        public static int AbsoluteExpiration { get; set; }

        static MLinkConfig()
        {
            spid = ConfigurationManager.AppSettings["spid"];
            sppassword = ConfigurationManager.AppSettings["sppassword"];
            dc = ConfigurationManager.AppSettings["dc"];
            DefaultGateway = ConfigurationManager.AppSettings["DefaultGateway"];
            AbsoluteExpiration = Convert.ToInt32(ConfigurationManager.AppSettings["AbsoluteExpiration"]);
        }
    }
}
